package academic.emailClient.control.listeners;

import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import academic.emailClient.model.EmailClientModel;
import academic.emailClient.view.EmailClientViewInterface;

public class TabbedPaneChangedListener implements ChangeListener{
	EmailClientViewInterface view;
	EmailClientModel model;
	
	/**
	 * Constructor
	 */
	
	public TabbedPaneChangedListener(EmailClientViewInterface view, EmailClientModel model){
		this.model = model;
		this.view = view;
	}
	
	/**
	 * Handle Tabbed Pane Changed Events
	 */
	@Override
	public void stateChanged(ChangeEvent arg0) {
		// re-load templates combo box after tab change
		view.reloadModifyTemplateComboBox();
		
	}

}
